
KERNEL_PATH = ../../kernel/
ROOTFS_PATH = ../../rootfs/home/drivers/
obj-m += btn_drv.o
obj-m += btn_dev.o

all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	
	cp *.ko $(ROOTFS_PATH)
clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean

